package com.example.myworkers.model;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;

/**
 * 编写者：门硕然
 * 车辆表
 */

public class Car {
  private int carid;
  private int carstatus;
  //日期格式
  @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
  private java.util.Date warranty;
  private String license;
  private String color;

  public Car(int carid, int carstatus, Date warranty, String license, String color) {
    this.carid = carid;
    this.carstatus = carstatus;
    this.warranty = warranty;
    this.license = license;
    this.color = color;
  }

  public Car() {
  }

  public int getCarid() {
    return carid;
  }

  public void setCarid(int carid) {
    this.carid = carid;
  }


  public int getCarstatus() {
    return carstatus;
  }

  public void setCarstatus(int carstatus) {
    this.carstatus = carstatus;
  }


  public java.util.Date getWarranty() {
    return warranty;
  }

  public void setWarranty(java.util.Date warranty) {
    this.warranty = warranty;
  }


  public String getLicense() {
    return license;
  }

  public void setLicense(String license) {
    this.license = license;
  }


  public String getColor() {
    return color;
  }

  public void setColor(String color) {
    this.color = color;
  }

}
